import { MagicWeaponCellRender } from "./MagicWeaponCellRender";
import { ObjCreate } from "../common/ObjCreate";
import { ImagesConst } from "../../resource/ImagesConst";
//class FirstMagicWeaponRankingCell
    
    export  class FirstMagicWeaponRankingCell extends MagicWeaponCellRender
    {
        constructor()
        {
            super();
            return;
        }

        protected /* override */ configUI(): void
        {
            super.configUI();
            _cellBg.dispose(true);
            _cellBg = ObjCreate.createBg(0, 0, 260, 105, this, ImagesConst.PreperenBg);
            contentBox.visible = false;
            return;
        }

        public /* override */ set data(arg1: Object)
        {
            super.data = arg1;
            if (arg1 != null) 
            {
                contentBox.visible = true;
            }
            else 
            {
                contentBox.visible = false;
            }
            this.visible = true;
            return;
        }
    }
